package com.bos.data.model;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "bos_behavior", schema = "dbo", catalog = "")
public class BosBehaviorModel {
    private Integer id;
    private String bname;
    private String bType;
    private String code;
    private String regular;
    private String bContent;
    private String bCondition;
    private String bDate;
    private String servious;
    private String people;
    private String coin;
    private String remark;
    private String others1;
    private String others2;
    private String others3;
    private Timestamp updateTime;

    public BosBehaviorModel() {
        super();
    }

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "bname")
    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    @Basic
    @Column(name = "bType")
    public String getbType() {
        return bType;
    }

    public void setbType(String bType) {
        this.bType = bType;
    }

    @Basic
    @Column(name = "code")
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Basic
    @Column(name = "regular")
    public String getRegular() {
        return regular;
    }

    public void setRegular(String regular) {
        this.regular = regular;
    }

    @Basic
    @Column(name = "bContent")
    public String getbContent() {
        return bContent;
    }

    public void setbContent(String bContent) {
        this.bContent = bContent;
    }

    @Basic
    @Column(name = "bCondition")
    public String getbCondition() {
        return bCondition;
    }

    public void setbCondition(String bCondition) {
        this.bCondition = bCondition;
    }

    @Basic
    @Column(name = "bDate")
    public String getbDate() {
        return bDate;
    }

    public void setbDate(String bDate) {
        this.bDate = bDate;
    }

    @Basic
    @Column(name = "servious")
    public String getServious() {
        return servious;
    }

    public void setServious(String servious) {
        this.servious = servious;
    }

    @Basic
    @Column(name = "people")
    public String getPeople() {
        return people;
    }

    public void setPeople(String people) {
        this.people = people;
    }

    @Basic
    @Column(name = "coin")
    public String getCoin() {
        return coin;
    }

    public void setCoin(String coin) {
        this.coin = coin;
    }

    @Basic
    @Column(name = "remark")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Basic
    @Column(name = "others1")
    public String getOthers1() {
        return others1;
    }

    public void setOthers1(String others1) {
        this.others1 = others1;
    }

    @Basic
    @Column(name = "others2")
    public String getOthers2() {
        return others2;
    }

    public void setOthers2(String others2) {
        this.others2 = others2;
    }

    @Basic
    @Column(name = "others3")
    public String getOthers3() {
        return others3;
    }

    public void setOthers3(String others3) {
        this.others3 = others3;
    }

    @Basic
    @Column(name = "update_time")
    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        BosBehaviorModel that = (BosBehaviorModel) o;
        return id == that.id &&
                Objects.equals(bname, that.bname) &&
                Objects.equals(bType, that.bType) &&
                Objects.equals(code, that.code) &&
                Objects.equals(regular, that.regular) &&
                Objects.equals(bContent, that.bContent) &&
                Objects.equals(bCondition, that.bCondition) &&
                Objects.equals(bDate, that.bDate) &&
                Objects.equals(servious, that.servious) &&
                Objects.equals(people, that.people) &&
                Objects.equals(coin, that.coin) &&
                Objects.equals(remark, that.remark) &&
                Objects.equals(others1, that.others1) &&
                Objects.equals(others2, that.others2) &&
                Objects.equals(others3, that.others3);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, bname, bType, code, regular, bContent, bCondition, bDate, servious, people, coin, remark, others1, others2, others3);
    }

    public BosBehaviorModel(String bname, String bType, String code,
                            String regular, String bContent, String bCondition, String bDate,
                            String servious, String people, String coin, String remark,
                            String others1, String others2, String others3) {
        super();
        this.bname = bname;
        this.bType = bType;
        this.code = code;
        this.regular = regular;
        this.bContent = bContent;
        this.bCondition = bCondition;
        this.bDate = bDate;
        this.servious = servious;
        this.people = people;
        this.coin = coin;
        this.remark = remark;
        this.others1 = others1;
        this.others2 = others2;
        this.others3 = others3;
    }

    public BosBehaviorModel(int bid, String bname, String bType, String code,
                            String regular, String bContent, String bCondition, String bDate,
                            String servious, String people, String coin, String remark,
                            String others1, String others2, String others3) {
        super();
        this.id = bid;
        this.bname = bname;
        this.bType = bType;
        this.code = code;
        this.regular = regular;
        this.bContent = bContent;
        this.bCondition = bCondition;
        this.bDate = bDate;
        this.servious = servious;
        this.people = people;
        this.coin = coin;
        this.remark = remark;
        this.others1 = others1;
        this.others2 = others2;
        this.others3 = others3;
    }
}
